package com.budwk.app.sqfw.enums;

import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 经营类型a17
 */
@Getter
public enum BusinessTypeA17Enum {

    ALL(1, "全部"),
    INDIVDUAL_BUSINESS(2, "个体工商户"),
    ENTERPRISE(3, "企业");

    private Integer code;

    private String name;

    BusinessTypeA17Enum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    /**
     * @return
     */
    public static List<String> listNames() {
        return Arrays.stream(BusinessTypeA17Enum.values()).map(BusinessTypeA17Enum::getName).collect(Collectors.toList());
    }

}
